Today want to through Sina Weibo Openapi, do a client come out. It can be said that the process is more difficult. This is only a matter of recording the problems encountered, the other according to the API requirements to register, create the application of what is good.1. API jar Reference problemCreated your own project and referenced the WEIBOSDK project according to the documentation, and found that there were always errors in the code where the
Want to do a function of API management platform ( function similar to Sina Weibo Openapi function is not as strong as Weibo Openapi )
The calling interface requires authorization after authorizing the user to obtain authorization information such as username token.
The user call interface parameters include: Username token or signature, etc. interface parameters
You can set the token expiration time
Recently, a wide range of popular language development applications such as Java, PHP, Nodejs and Ruby have been discovered, the vulnerability exists in Openapi (Swagger Code Generator), a parameter injection vulnerability, Any application that integrates OPENAPI will be affected. An attacker could exploit this vulnerability to embed malicious code in a swagger JSON file for remote execution. It is worth no
The openapi of personal space is very similar to Facebook (the same is required), so we will also use custom tags (himl) Like fbml in HI ). In. the notification parameter needs to be input during the development of the send interface. This parameter is the content of the notification. In fact, it is a string that contains HTML and himl tags. One requirement is as follows: the user needs to convert the username parameter into the real name of the user,
) operations on resources include obtaining, creating, modifying, and deleting resources.
(3) perform operations on resources in the form of operations on resources.
(4) The resource format can be any format. For example, in a Web application, it can be XML or HTML, depending on whether the reader is a machine or a person, whether it is a customer software that consumes web Services or a web browser.
The design of the OpenAPI project will refer
Sina Weibo share all kinds of difficulties ah ... Depressed death. Record it here.1. Using the interface: Https://api.weibo.com/2/statuses/upload_url_text.jsonThis can be applied in the interface management, the advanced permissions inside2. Like callback address Redirect_url This is to fill in, and don't forget3. Specific passed Parameters: Token parameter: access_token, image address: URL text content: status4. Request method, post so it can be done.To verbose the logic of the overall request:
popular SNS platforms in China, such as Renren.com and kaixin.com. The aforementioned "food stealing" game is rooted in the SNS platform, which is popular across the north and south of the river, the success of the game "stealing food" depends entirely on (somewhat absolute) The Open API policy of SNS. Recently, a project has opened APIs. Initially, we considered using web service, but then we conducted a survey on the implementation of Open APIs in the industry. We learned that most companies
Front-end specification 1-HTML specification, specification 1-HTML SpecificationHTML Specification1. Code style (parameter 1 ,)Use Tab characters (four spaces in length). When there are too many hierarchies, try to write them in one line, but make sure that each line of code should not be too long, for example, the Code should not be too long.
For example, try to
Javasript modularity before understanding the Amd,cmd specification, it is necessary to understand briefly what is modular and modular development? Modularity refers to the systematic decomposition of a problem in order to solve a complex problem or a series of mixed problems, according to a sort of thinking. Modularity is a way of dealing with complex systems that break down into manageable modules that are more logical and maintainable in code struc
Javasript modularity before understanding the Amd,cmd specification, it is necessary to understand briefly what is modular and modular development? Modularity refers to the systematic decomposition of a problem in order to solve a complex problem or a series of mixed problems, according to a sort of thinking. Modularity is a way of dealing with complex systems that break down into manageable modules that are more logical and maintainable in code struc
[Specification] Front-end encoding specification-html specification, standard front-end encoding htmlDocument Type
Html5 document type statement is recommended:
Language attributes
According to html5 specifications:
We strongly recommend that youhtmlSpecify the root elementlangAttribute to set the correct language for the document. This will help the speech synth
?,dependencies?,factory);
It wants to make all of the dependencies (DEP) when declaring the module, and also as a parameter to the factory, like this:
Copy Code code as follows:
define ([' Dep1 ', ' Dep2 '],function (DEP1,DEP2) {...});
If you have no dependencies, define a simple module, so here it is.
Define (function () {
var exports = {};
Exports.method = function () {...};
return exports;
});
Here are define, wrapping things up, that node imp
PHP Design Mode Series Specification specification mode, specification mode
1. Pattern definition
Specification mode is an extension of the combined pattern, which is used more in framework development (project-level development is seldom used), and a simple introduction is made here.The
Article Description: Background System Specification design experience.
The background system uses a whole set of UI, why the form is different? Can you unify and bring a better experience? Based on the inner doubt of the interaction designer, we are eager to produce a set of design specifications for the unified background operating system, conducive to the use of user habits of training and continuity, reduce learning costs, improve the u
Reprint Source: http://blog.chinaunix.net/uid-26672038-id-4112229.html
Javasript ModularBefore understanding the AMD,CMD specification, still need to first come to understand what is modular, modular development.Modularity refers to the systematic decomposition of a problem in the process of solving a complex problem or a series of mixed problems, according to a sort of thinking. Modularity is a way of dealing with complex systems that decompose into
[Specification] Front-end encoding specification-jquery specification, front-end jqueryUse single quotes
Not recommended
$("div").html("
Recommendation
$('div').html('');Cache variable
DOM traversal is expensive, so we try to cache elements that will be reused.
Not recommended
var h = $('#element').height();$('#element').css('height', h - 20);
Recommendation
var
defined by RequireJS during promotion.
CMD is the standardized output of modules defined by SeaJS during promotion.
Similarly, there is also the CommonJS Modules/2.0 specification, which is the standardized output of the module definition in BravoJS during the promotion process. How many ??
These specifications are designed for the modular development of JavaScript, especially on the browser side.
At present, the implementation of these specification
JavaScript modularityBefore understanding the AMD,CMD specification, let's start with a simple understanding of what is modular and modular development.Modularity refers to the systematic decomposition of a problem in order to solve a complex problem or a series of mixed problems, according to a sort of thinking. Modularity is a way of dealing with complex systems that break down into manageable modules that are more logical and maintainable in code s
1 Document Information
Entry
Content
Project number
General
Project name
General
Title
JavaScript Programming specification
Category
Specification document
Current
Trial draft
Summary
Current version
V1.0
Date
2015/11/9
Auth
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.